/**
 * Created by xiaom on 2016/10/30.
 */
import React, {Component} from 'react';
import {Router, Route, IndexRoute, hashHistory} from 'react-router';
import App from './app/App/index';
import Home from './app/Home/index';

export default class Routers extends Component {
  render() {
    return (
      <Router history={hashHistory}>
        {/*//todo 调试用/netmaker/Client/html/*/}
        <Route path="/" component={App}>
          <IndexRoute component={Home}/>
          {/*<Route path="/netfix" component={NetFix}/>*/}
          <Route path="/netfix" component={require('react-router!./app/NetFix/index.js')}/>
          <Route path="/netlist" component={require('react-router!./app/NetList/index.js')}/>
          <Route path="/details" component={require('react-router!./app/Details/index.js')}/>
          <Route path="/comment" component={require('react-router!./app/Comment/index.js')}/>
          <Route path="/about" component={require('react-router!./app/About/index.js')}/>
        </Route>
      </Router>
    );
  }
}
